package com.hongning.railway.binding.textview;


import android.databinding.BindingAdapter;
import android.widget.TextView;

import com.lcodecore.tkrefreshlayout.RefreshListenerAdapter;
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout;

import me.goldze.mvvmhabit.binding.command.BindingCommand;


/**
 * Created by goldze on 2017/6/16.
 * TwinklingRefreshLayout列表刷新的绑定适配器
 */
public class ViewAdapter {

    @BindingAdapter(value = {"isSelected"}, requireAll = false)
    public static void setSelected(TextView textView, final Boolean isSelected) {
        textView.setSelected(isSelected);
    }
}
